package retu;

import leave.LeaveStudent;
import leave.StudentList;

public class ShowOpertion implements IOperation{
    @Override
    public void work(StudentList studentList) {
        System.out.println("展示离校信息");
        int size = studentList.getUseSize();
        for (int i = 0; i < size; i++) {
            LeaveStudent leaveStudent = studentList.getLeaveStudents(i);
            System.out.println(leaveStudent);
        }
    }
}
